package com.chenchao.designer.methodfactory;

/**
 * @encoding : UTF-8
 * @Time : 2020/11/14 13:01
 * @Author : Chen Chao
 * @File : javaSE.com.chenchao.javadesigner.methodfactory.AppleFactoryImpl.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 * 优点：可扩展工厂，每一种产品对应一个工厂
 * 缺点：只能生成某一大类的产品
 */
public class AppleFactoryImpl implements FuiteFactory {
    @Override
    public Fruite createFuite() {
        return new AppleImpl();
    }
}
